<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="https://cdn.bootcss.com/echarts/4.2.0-rc.1/echarts-en.min.js"></script>
	</head>
	<body>
		<div id="main" style="width: 500px;height: 400px;"></div>
		<script type="text/javascript">
			var chart = echarts.init(document.querySelector("#main"));
			var option = {
				tooltip:{},
				xAxis:{
					data:['2017-10-24', '2017-10-25', '2017-10-26', '2017-10-27']
				},
				yAxis:{},
				series:[{
					type:'k',//即candlestick，'k' 会被自动转为 'candlestick'
					data:[
			            [20, 30, 10, 35],//开盘，收盘，最低，最高
			            [40, 35, 30, 55],
			            [33, 38, 33, 40],
			            [40, 40, 32, 42]
					]
				}]
			}
			chart.setOption(option);
		</script>
	</body>
</html>
